#include <cstdio>
#include <iostream>
#include <cstring>
using namespace std;

#define STRING_LENGTH 300

void reserve_string(char[], int);

int main()
{
    char str[STRING_LENGTH];
    while (cin.getline(str, STRING_LENGTH)) {
        int str_len = strlen(str);
        str[str_len] = '\0';
        reserve_string(str, str_len);
        printf("%s\n", str);
    }
}

void reserve_string(char str[], int len)
{
    char temp;
    for (int i = 0, j = len - 1; i < j; i++, j--) {
        temp = str[i];
        str[i] = str[j];
        str[j] = temp;
    }
}